-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: sync script for gsuite-myaegee #188
Conversation
Codecov Report
@@ Coverage Diff @@
## master #188 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 42 42
Lines 1339 1339
Branches 211 211
=========================================
Hits 1339 1339 Continue to review full report at Codecov.
|
as per rik's suggestion on slack: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've added some notes on what still needs to be changed
75231c5
to
7e13deb
Compare
@linuxbandit people are forced to change away from @aegee.eu but they cannot use their GSuite for notifications until this is set. Can you work on this? |
scripts/sync-gsuite-users.js
Outdated
|
||
try{ | ||
|
||
const part1 = await superagent.get('gsuite-wrapper:8084/accounts?max=500') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
await request({
url: 'gsuite-wrapper:8084/accounts?max=500',
method: 'GET'});
I think this would work and remove the need for installing superagent
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
const request = require('request-promise-native');
At the top
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done and tested (not tested with a prod db though, just tested the translation and that the requests don't error)
also I do not remember how I used to run it: certainly not with |
i solved my last 'problem' of async stuff. @WikiRik you can test by importing teh prod db, adding the service account in gsuite-wrapper, and running the script on the docker container of core |
88ee9e2
to
0493e7b
Compare
# [1.33.0](1.32.1...1.33.0) (2021-03-20) ### Features * sync script for gsuite-myaegee ([#188](#188)) ([1cba493](1cba493))
🎉 This PR is included in version 1.33.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
No description provided.